package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

public interface TokenService {
    //生成token
    public String generatedToken(String userAgent, ItripUser user) throws Exception;
    //将token保存到Redis中
    public void save(String token,ItripUser user) throws Exception;
    //验证方法
    public boolean validate(String userAgent,String token) throws Exception;

    public void delete(String token) throws Exception;
}
